import request from '@/utils/request'

export function WarehouseInputQuery(data) {
  return request({
    url: '/warehouse/input/query',
    method: 'post',
    data,
  })
}

export function WarehouseInputQueryinfo(data) {
  return request({
    url: '/warehouse/input/queryinfo',
    method: 'post',
    data,
  })
}

export function WarehouseInputAdd(data) {
  return request({
    url: '/warehouse/input/add',
    method: 'post',
    data,
  })
}

export function WarehouseInputitemQuery(data) {
  return request({
    url: '/warehouse/inputitem/query',
    method: 'post',
    data,
  })
}

export function WarehouseInputitemdel(data){
  return request({
    url: '/warehouse/input/del',
    method: 'post',
    data,
  })
}

// /warehouse/input/queryinput
export function WarehouseInputqueryinput(data){
  return request({
    url: '/warehouse/input/queryinput',
    method: 'post',
    data,
  })
}

// /warehouse/input/edit
// 编辑
export function WarehouseInputedit(data){
  return request({
    url: '/warehouse/input/edit',
    method: 'post',
    data,
  })
}
// /warehouse/input/affirm
export function WarehouseInputaffirm(data){
  return request({
    url: '/warehouse/input/affirm',
    method: 'post',
    data,
  })
}

//出库
export function WarehouseOutQuery(data) {
  return request({
    url: '/warehouse/out/query',
    method: 'post',
    data,
  })
}

export function WarehouseOutAdd(data){
  return request({
    url: 'warehouse/out/add',
    method: 'post',
    data,
  })
}

export function WarehouseOutQueryInfo(data) {
  return request({
    url: '/warehouse/out/queryinfo',
    method: 'post',
    data,
  })
}
// /warehouse/out/queryout
export function WarehouseinputQueryInfolist(data){
  return request({
    url: '/warehouse/out/queryout',
    method: 'post',
    data,
  })
}
// warehouse/out/edit
export function Warehouseentryedit(data){
  return request({
    url: '/warehouse/out/edit',
    method: 'post',
    data,
  })
}

// warehouse/out/del
export function Warehouseentrydel(data){
  return request({
    url: '/warehouse/out/del',
    method: 'post',
    data,
  })
}

// /warehouse/out/affirm
export function Warehouseentryaffirm(data){
  return request({
    url: '/warehouse/out/affirm',
    method: 'post',
    data,
  })
}

export function getWarehouseQuery(data) {
  return request({
    url: '/warehouse/info/query',
    method: 'post',
    data,
  })
}

export function getWarehouseAreaQuery(data) {
  return request({
    url: '/warehouse/area/query',
    method: 'post',
    data,
  })
}

export function getWarehouseAreaAdd(data) {
  return request({
    url: '/warehouse/area/add',
    method: 'post',
    data,
  })
}

export function getWarehouseAreaEdit(data) {
  return request({
    url: '/warehouse/area/edit',
    method: 'post',
    data,
  })
}

export function getWarehouseAreaDel(data) {
  return request({
    url: '/warehouse/area/del',
    method: 'post',
    data,
  })
}

export function WarehousePlaceQuery(data) {
  return request({
    url: '/warehouse/space/query',
    method: 'post',
    data,
  })
}

export function WarehousePlaceAdd(data) {
  return request({
    url: '/warehouse/space/add',
    method: 'post',
    data,
  })
}

export function WarehousePlaceEdit(data) {
  return request({
    url: '/warehouse/space/edit',
    method: 'post',
    data,
  })
}

export function WarehousePlaceDel(data) {
  return request({
    url: '/warehouse/space/del',
    method: 'post',
    data,
  })
}

export function WarehouseInfo(params,data) {
  return request({
    url: '/warehouse/info/queryGoodsInfo',
    method: 'post',
    params,
    data,
  })
}

export function StockopeningList(data) {
  return request({
    url: '/warehouse/stockopening/query',
    method: 'post',
    data,
  })
}

// /warehouse/area/queryArea
export function WarehouseareaqueryArea(data){
  return request({
    url: '/warehouse/area/queryArea',
    method: 'post',
    data,
  })
}

//warehouse/stockopening/edit
export function Stockopeningedit(data){
  return request({
    url: 'warehouse/stockopening/edit',
    method: 'post',
    data,
  })
}

// warehouse/stockopening/del
export function Stockopeningdel(data){
  return request({
    url: 'warehouse/stockopening/del',
    method: 'post',
    data,
  })
}

export function Warehouseadd(data){
  return request({
    url: '/warehouse/info/add',
    method: 'post',
    data,
  })
}
// /warehouse/info/edit
export function Warehouseedit(data){
  return request({
    url: '/warehouse/info/edit',
    method: 'post',
    data,
  })
}

export function Warehousedel(data){
  return request({
    url: '/warehouse/info/del',
    method: 'post',
    data,
  })
}
// /system/dict_value/query
export function getapi(data){
  return request({
    url: '/system/dict_value/query',
    method: 'post',
    data,
  })
}